﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Core.Models;

namespace Core.Controllers
{
    public class AddressController : Controller
    {
        //
        // GET: /Address/

        public ActionResult List(List<Address> list)
        {
            return PartialView(list);
        }

        public ActionResult Edit(Guid id)
        {
            CoreEntities core = new CoreEntities();
            Address address = core.Addresses.First(m => m.AddressId == id);
            return PartialView(address);
        }

        public ActionResult Details(Guid id)
        {
            CoreEntities core = new CoreEntities();
            Address address = core.Addresses.First(m => m.AddressId == id);
            return PartialView(address);
        }

    }
}
